package cn.stacey.blog.domain;

import java.util.List;

/**
 * ajax
 * 下面是默认接受的数据格式：
 * {
	  code: 0,
	  msg: "",
	  count: 1000,
	  data: []
	} 
	所以需要重新建一个对象
 * @author 袁
 *
 */
public class AjaxResponse<E> {
	private Integer code;
	private String msg;
	private Integer count;
//	private List<Category> data;
	private List<E> data;
	public List<E> getData() {
		return data;
	}
	public void setData(List<E> data) {
		this.data = data;
	}
	public Integer getCode() {
		return code;
	}
	public void setCode(Integer code) {
		this.code = code;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	public Integer getCount() {
		return count;
	}
	public void setCount(Integer count) {
		this.count = count;
	}
//	public List<Category> getData() {
//		return data;
//	}
//	public void setData(List<Category> data) {
//		this.data = data;
//	}


}
